package com.homedo.odin.solution.contract.pc;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.homedo.odin.solution.model.base.BaseResponse;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel(description = "是否允许下载bean")
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class UserDownloadAuthResp extends BaseResponse {

    @ApiModelProperty("方案编号")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long solutionId;

    @ApiModelProperty("方案名称")
    private String solutionName;

    @ApiModelProperty("文件存储位置")
    private String attachment;

    @ApiModelProperty("下载权限，0：不可下载 ；1：可下载")
    private Integer isAllowDownload;

}
